package com.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户
 */
@Data
@TableName("user")
@ApiModel("User对象")
public class User implements Serializable {
    @TableId(value = "user_id",type = IdType.AUTO)
    @ApiModelProperty(value = "用户id",required = true,example = "0")
    private Integer id;//用户主键

    @TableField("username")
    @ApiModelProperty("用户账号")
    private String username;//用户账号

    @TableField("password")
    @ApiModelProperty("用户密码")
    private String password;//用户密码

    @TableField("user_sex")
    @ApiModelProperty("用户性别")
    private String sex;//用户性别

    @TableField("telephone")
    @ApiModelProperty("用户电话")
    private String telephone;//用户电话
}
